package cn.school.workflow.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;


public class MutiGroupsListener implements TaskListener {
    private static final long serialVersionUID = 9175017259260438892L;

    @Override
    public void notify(DelegateTask delegateTask) {
        delegateTask.setVariable("passCount", "0");

        delegateTask.setVariable("totalCount", "0");

        delegateTask.setVariable("noPassCount", "0");

        //为每一个任务设置处理人

        String party = (String)delegateTask.getVariable("assignee");

        delegateTask.setAssignee(party);


    }
}
